package xj.toolkit.netty.util;

import io.netty.util.AttributeKey;

public class NettyConstants {
	/**
	 * 通过该key将netty的channel存放在请求的bean中
	 */
	public static final String PROPERTY_CHANNEL = "channel";

	/**
	 * 原始的http请求。
	 */
	public static final String PROPERTY_ORIGINAL_HTTP_REQUEST = "origianl_request";

	public static final String JSON_TYPE = "application/json";

	public static final String TLV_TYPE = "application/x-tlv";

	public static final String TXT_TYPE = "text/plain";

	public static final String HEADER_UUID = "uuid";

	public static final AttributeKey<Class> CTX_HTTP_RESP_CLASS = AttributeKey.valueOf("CTX_HTTP_RESP_CLASS");

	public static final String HEADER_MESSAGE_CODE = "Msg";
}
